<?php
return [
    'server'    => [
        'name'          => 'WafAgent',
        'port'          => 50000,
        'sock_type'     => SWOOLE_SOCK_UDP,
        'setting'       => [
            'worker_num'    => 1,
            'daemonize'     => 0,
        ],
    ],
    'key'   => [
        'waf_interface_statistics'  => 'wis',  // 接口调用统计
        'waf_count_statistics'      => 'wcs',  // 次数调用统计
    ],
    'db'    => [
        'mysql' => [
            'host'          => 'localhost',
            'user'          => 'root',
            'password'      => 'root',
            'database'      => 'waf',
            'port'          => '3306',
            'timeout'       => '10',
            'charset'       => 'utf8',
            'strict_type'   => false, //开启严格模式，query方法返回的数据也将转为强类型
            'fetch_mode'    => true, //开启fetch模式, 可与pdo一样使用fetch/fetchAll逐行或获取全部结果集(4.0版本以上)
        ],
    ],
];
?>